<!DOCTYPE html>
<html>
<style id='target'>
</style>
<script src="../../resources/js-test.js"></script>
<script>
function runTest() {
    var target = document.querySelector('#target');
    document.styleSheets[0].insertRule('@import url("resources/red.css");', 0);
    target.parentNode.removeChild(target);
} 
</script>
</head>
<body onload="runTest()";>
  <pre id="console"></pre>
</body>
<script>
description("crbug.com/344310: crash in WebCore::CSSStyleSheet::sheetLoaded.");
</script>
</html>
